MakeDPCM Manual

MakeDPCM Version 1.1.0.0


1.Basic Operation

(1)Prepare WAV file to convert
(2)Set options
(3)Drag and drop the WAV ffile to the window (multiple files are okay)
(4)Test current settings (DPCM button)
(5)Adjust settings and reconvert (Conv button)
(6)Adjust settings to taste

If the conversion is successful a DMC file with the same name will be saved
to the same location as the WAV file. The filename and status are displayed
in the upper right text box. Press the Reset button to reset the settings.




2.Precautions

・Requiers .NET Framework 4.0 or higher (WindowsXP or higher)
・Do not install to (C:\Program Files) so that the config file can be written
・Extreme settings or content may cause an error
・Output files are overwritten
・Processing is heavy for waveform display
・The config file is overwritten at the end
・All processing is treated as "numeric value" not "sound pressure" (dB)


3.Names of sections



〇〇オプション = Options
ボ夕ン類 = Command Buttons
波形表示通択 = Waveform Display Options
情報表示 = Information Display
上限 = Upper Limit
中央 = Center
下限 = Lower Limit
拡大縮小 = Scaling


4.Processing Order

・Processing order is left to right, top to bottom.
・6 to 11 in this manual corresponds to this.




5.File and Input Method

Input Method
・Drag and drop the target file from Explorer etc.

Drag and Drop
・Processing files determined by the filename extension.
・Multiple files can be dropped together.
・If you drop multiple files then they are processed sequentially.
・Note:If you drag PRM and DMC files with your WAV files,
    the resulting WAV files will use unintended settings.

WAV File
・The extension is .wav
・So-called "Windows Wave" file
・Supported format is as follows:
 ・Sampling Frequency:Any number within reason
 ・Quantization: 8bit or 16bit (8bit is converted to 16bit automatically)
 ・Channels: Mono or Stereo (Stereo is converted to Mono automatically)
 ・Compression: Uncompressed (Linear PCM)

PRM File
・The extension is .prm
・Made when MakeDPCM is used
・Will have the same name as the WAV file
・Options and settings for the envelope and slope are stored in these files
 (Envelope and Slope only if a WAV file is found)
・Converts a WAV file if there is a WAV file with the same name as the PRM file
・The state of the waveform display is not stored

DMC File
・The extension is .dmc
・Converts DMC to WAV and WAV to DMC
・Adds _dmc to the end of the input file name
・Use DPCM option Rate, First at input
・FileOut WAV can be used
・The following options change to not work
 ・Wave (All)
 ・MA
 ・Slope
 ・DPCM (First and Auto, Adjust)
 ・FileOut (WAV PRM DMC)

6.WAVE Option

Speed
・1.00%〜999.99% can be used
・For sampling rate, 100.0% is unchanged, less is slower, more is faster.

LPF
 Frequency (LPF)
 ・1〜99999Hz can be used
 ・Cutoff frequency
 ・Cut frequencies higher than this frequency

 N(Filter quality / steepness / resonance)
 ・3〜100 can be used
 ・Larger number means slower processing and the sharper the filter.
 ・Slower number means faster processing and the smoother the filter.
 
 The characteristics are not confirmed. Go with feeling.

Normalize
・Increases the volume to the max limit of the WAV file

Volume
・1.00%〜999.99% can be used
・Put a percentage on the whole
 (Settings can exceed upper and lower limits)

Envelope
・Change the volume to the shape drawn
・To display or edit the envelope, check Envelope in the waveform display section
・The upper limit is 2.0 to 10.0, the lower limit is 0.0
・Right-click the check box on the WAVE option side to reset the envelope

Manually compress the DPCM. It an be used to control the volume.

TrimZero
・Remove samples with ±512 or less volume from the start and end
・Note:WAV file becomes shorter in length
・Note: Doesn't delete non-consecutive parts from the start and end

Quantizes 65536 levels (WAV) to 64 levels (DPCM)
It becomes 1024 (WAV) per 1 (DPCM) and since it crosses 0, it becomes ±512
1 (DPCM) or less is noise, so it is unnecessary for DPCM.


7.MovingAverage

MA(MovingAverage)
・Detects the amplitude on the negative side and aligns the negative peak of the entire WAV along the lower limit
・Reduce decay noise after DPCM conversion
・The volume of triangular wave and noise can be kept as high as possible

Type
・SMA(Simple Moving Average) Average of a specified length of samples around each sample.
・WMA(Weighted Moving Average) SMA except samples are weighted lighter the further they are from the center sample.
・EMA(Exponential Moving Average) WMA except weights become exponentially lighter the further from the sample.

Leng(Length)
・Number of samples used in the moving average.
・1 to 10000 samples can be used

Amp(Amplifier)
・Amplify the obtained moving average value
・0.01 to 10.0 can be used

Bias
・Value to be added to the moving average
・-10000 to 10000 can be used (WAV value)


8.Slope Option

Slope
・Keep the waveform along along a straight line, leaving the amplitude unchanged
・Check Slope of waveform display options to display and edit the straight line
・Right-click on the Slope option check box to reset the straight line

Zero
・Make the waveform follow the straight line as volume 0, keeping it in the center.

Min
・Make the waveform follow the straight line as the lower limit of the waveform.


9.DPCM Option

Rate
・Specify DPCM sampling rate

First
・Specify the first sample's volume
・0 to 63 can be used
・If you check Auto it will be calculated from the first sample's volume of the WAV
・Note: The DPCM value at the start of playback is twice that of First.

Adjust
・0 to 1023 can be used
・Added to the value of WAV when converting

Adjust the boundry of WAV value where the DPCM value changes.
There is a difference in the near-silent sections.
Near 0 will be "baud" and near 512 will be "peep".



10.DMC Option

Padding
・Align the data length to the 16-byte boundry
・Data added is 0x00 when MA or Slope is enabled, 0x55 otherwise
・Note: Actually it becomes 16-byte boundry + 1 byte

Limit
・Limit: Delete anything exceeding 4081 bytes
・NoLimit: Don't limit the data length
・Streaming:File output every 4081 bytes (MML for NSD.Lib


11.FileOut

・Output each file after conversion
・Outputs to the same directory as the WAV
・Output file is overwritten
・WAV is available only when a DMC file is input


12.Waveform Display Selection

Envelope
・Pink 
・Display an editable straight line.
・Check the WAV option to enable Envelope processing

Slope
・Yellow 
・Display an editable straight line.
・Check the Slope option to enable Slope processing

WAVE(in)
・Blue 
・Display the waveform after WAV option processing

WAVE(out)
・Gray 
・Display the waveform before DPCM processing (waveform after Slope processing)

MA
・Green 
・Waveform generated by MovingAverage

DPCM
・Red 
・DPCM waveform

Color Change
・Change items starting with color_ in the configuration file
・Has 8 digits in hexadecimal notation starting with 0x
・Alpha, Red, Green, Blue every 2 characters (1 byte) from the top
・Alpha 00 is transparent, FF is opaque


13.Waveform Display / Scale

Waveform
・There are three reference lines: upper limit, center, lower limit
・WAVE(in), WAVE(out), MA, and Slope are WAV waveforms
・The upper limit is 32767, the center is 0, and the lower limit is -32768
・MA and Slope are WAV waveforms, but are used for processing
・DPCM is a waveform that shows the DPCM output
・The upper limit is 63, the center is 31 or 32, the lower limit is 0
・Envelope is a straight line indicating the amplitude multiplication
・The upper limit is 2.0 to 10.0, the center is 1.0, the lower limit is 0.0
・Note: If you widen the screen, processing becomes heavy

Straight Line
・Points can be moved up, down, left, and right by dragging with left click
・The left and right movement of a point can not cross the next point
・The left end and right end points can not move left and right
・To add a point, hold down the Shift key and left click
・To delete a point, hold down the Ctrl key and left click the point
・Note: You can move out of the screen, but you won't have access to the point

Scaling
・It can be enlarged horizontally, regardless of the size of the screen
・It can be enlarged vertically, depending on the size of the screen


14.Button

Conv
・Convert the last input WAV file with the current settings
・Output file is overwritten
・Note: Even if you drop more than one, only the one you converted last is used

WAVE
・Play WAV after WAVE option processing
・Note: Even if you change various options, the wave will not be updated if you don't click Conv (convert)

DPCM
・Play DPCM
・Note: Even if you change various options, the DPCM will not be updated if you don't click Conv (convert)

Stop
・Stop playback

Reset
・Set the on-screen settings back to default


15.Keyboard Shortcuts

・ESC:Stop
・A:Convert
・S:Stop
・Z:WAVE playback
・X:DPCM playback (Rate 15)
・D:DPCM playback (Rate 14)
・C:DPCM playback (Rate 13)
・F:DPCM playback (Rate 12)
・V:DPCM playback (Rate 11)
・G:DPCM playback (Rate 10)
・B:DPCM playback (Rate 9)
・H:DPCM playback (Rate 8)
・N:DPCM playback (Rate 7)
・J:DPCM playback (Rate 6)
・M:DPCM playback (Rate 5)
・K:DPCM playback (Rate 4)
・<:DPCM playback (Rate 3)
・L:DPCM playback (Rate 2)
・>:DPCM playback (Rate 1)
・+:DPCM playback (Rate 0)
・R:Reset


16.Information Display

WAVE
・file: Filename
・rate: Sample rate in Hz
・sample: Number of samples
・length: Time in msec
・value: Min value / Max value

DMC
・file: Filename
・size: File size in bytes
・sample: Number of samples
・length: Time in msec
・value: Min value / Max value (amplitude)

*** Error occured ***
・Error occurred
・Review the settings

*** Failed... ***
・The conversion failed due to an error etc.
・Review the settings


17.Meaning of MA and Slope

Meaning
・Make the DPCM waveform follow the center (volume 0)

Advantages of following 0
・We can keep the volume of triangular wave and noise as high as possible
・More powerful sound(?)
When the DPCM volume value (value of $4011) is large, the triangular wave noise volume decreases.
Conversely, when DPCM is small, triangular noise increases in volume.
Also, the smaller the DPCM volume value, the greater the actual volume change.
It is a mystery of the NES.

Disadvantages of following 0
・It is troublesome to make
・Putty noise appears when you use sounds (such as 31) with different volume of playback start


18.License Etc

Copyright Notice
All copyrights of MakeDPCM's executable file and source code belong to DDSS.
Copyright (c) 2013,2014 DDSS, All rights reserved.

License
Only if the following conditions are met:
"MakeDPCM executable file and source code" (hereinafter referred to as this software)
Permit "use or redistribution including modification" (hereinafter referred to as use).

・Do not use based on bad faith
・When using part or all, you must not display or call the copyright holder falsely
・About occurrence and change of all events by use of this software,
 The copyright holder does not guarantee this. Also, I do not take responsibility.


19.Contact Information

DDSS Product Strage
http://www.ddss.sakura.ne.jp/

Twitter
https://twitter.com/DDSS_JP